<%--
  Created by IntelliJ IDEA.
  author: Jsonor
  date: 2018/3/21 16:43
  description: Description
--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
  <title>修改数据</title>
</head>
<body>
<h1 align="center" style="font-family: 楷体" > 修改城市数据</h1>
<div style="text-align: center">
  <form action="${pageContext.request.contextPath}/update.do" method="post">
    <table align="center">
      <tr>
        <td>Code</td>
        <td><input name="code" value="${codeList.code}"></td>
      </tr>
      <tr>
        <td>Name</td>
        <td><input name="name" value="${codeList.name}"></td>
      </tr>
      <tr>
        <td>Region</td>
        <td><input name="region" value="${codeList.region}"></td>
      </tr>
      <tr>
        <td>SurfaceArea</td>
        <td><input name="surfaceArea" value="${codeList.surfaceArea}"></td>
      </tr>
      <tr>
        <td>IndepYear</td>
        <td><input name="indepYear" value="${codeList.indepYear}"></td>
      </tr>
      <tr>
        <td>Population</td>
        <td><input name="population" value="${codeList.population}"></td>
      </tr>
      <tr>
        <td>LifeExpectancy</td>
        <td><input name="lifeExpectancy" value="${codeList.lifeExpectancy}"></td>
      </tr>
      <tr>
        <td>GNP</td>
        <td><input name="gnp" value="${codeList.gnp}"></td>
      </tr>
      <tr>
        <td>HeadOfState</td>
        <td><input name="headOfState" value="${codeList.headOfState}"></td>
      </tr>
      <tr>
        <td>Capital</td>
        <td><input name="capital" value="${codeList.capital}"></td>
      </tr>
      <tr>
        <td>Code2</td>
        <td><input name="code2" value="${codeList.code2}"></td>
      </tr>
      <tr height="70px">
        <td><input type="submit" value="更改数据"></td>
        <td><input type="reset" value="重置"></td>
        <td><input type="button" onclick="goback()" value="返回"></td>
        <script type="text/javascript">
          function goback() {
            window.history.go(-1);
          }
        </script>
      </tr>
    </table>
  </form>
</div>
</body>
</html>
